<%@page import="clases.Preinscrito"%>
<%@page import="java.util.Hashtable"%>
<%@page import="clases.Aspirante"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>PIO - Preinscrito</title>
    <script language="javascript" type="text/javascript" src="javascript/formularios.js"></script>
    <meta http-equiv="Content-Language" content="English" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="interfaz/style.css" media="screen" />
  </head>
  <%@include file="validacionAspi.jsp" %>
  <body>
    <div id="wrap">

      <div id="header">
        <!--        <h1><a href="#">Website Title</a></h1>-->
      </div>

      <%@include file="tm.jsp" %>

      <div id="content">
        <div class="right"> 
          <div class="centrar">
            <h1>Bienvenido al sistema</h1>
            <%
              Preinscrito yo = (Preinscrito) request.getSession().getAttribute("MiInformacion");
            %>
            <html:form action="/PreinscritoModificar" onsubmit="return validarAspiIndex(this)">
              <table>
                <tbody>
                  <tr>
                    <td>Cedula:</td>
                    <td>
                      <html:hidden property="cedula" value="<%= Integer.toString(yo.getCedula())%>"/>
                      <bean:write name="Participante" property="cedula"/>
                    </td>
                  </tr>
                  <tr>
                    <td>Nombres:</td>
                    <td>
                      <html:text maxlength="20" property="nombres" value="<%= yo.getNombres()%>"/>
                    </td>
                  </tr>
                  <tr>
                    <td>Apellidos:</td>
                    <td>
                      <html:text maxlength="20" property="apellidos" value="<%= yo.getApellidos()%>"/>
                    </td>
                  </tr>
                  <tr>
                    <td>Correo:</td>
                    <td>
                      <html:text property="correo" value="<%= yo.getCorreo()%>"/>
                    </td>
                  </tr>
                  <tr>
                    <td>Opcion de estudio 1:</td>
                    <td>
                      <html:select property="opcion1">
                        <html:optionsCollection name="carreras" label="nombre" value="codigo"/>
                      </html:select>
                    </td>
                  </tr>
                  <tr>
                    <td>Opcion de estudio 2:</td>
                    <td>
                        <html:select property="opcion2">
                        <html:optionsCollection name="carreras" label="nombre" value="codigo"/>
                      </html:select>
                    </td>
                  </tr>
                  <tr>
                    <td>Opcion de estudio 3:</td>
                    <td>
                      <html:select property="opcion3">
                      <html:optionsCollection name="carreras" label="nombre" value="codigo"/>
                      </html:select>
                    </td>
                  </tr>
                  <tr>
                    <td>Promedio:</td>
                    <td><bean:write name="Participante" property="promedio"/></td>
                  </tr>                  
                </tbody>
              </table>
              <div class="center">
                <html:submit styleId="boton" value="Modificar"/>
                <div id="alerta">
                  <bean:write name="Participante" property="mensaje"/>
                </div>
              </div>
            </html:form>
          </div>

        </div>

        <%@include file="lm.jsp" %>

        <div style="clear: both;"> </div>

      </div>
    </div>

    <%@include file="footer.jsp" %>

  </body>
</html>